package cn.wolfcode.crm.util;

import java.lang.reflect.Method;

/**
 * 处理拼接权限表达式的字符串
 */
public class StringUtils {
     public static String getExpression(Method method){
         //获取该方法的类名
         String simpleName = method.getDeclaringClass().getSimpleName().replace("Controller","");
         String className = (simpleName.charAt(0) + "").toLowerCase() + simpleName.substring(1);
         System.out.println("类简单名字:"+className);
         return className+":"+method.getName();
     }
}
